package homework;

public class Sort2 {
	public static void main(String[] args) {
		int[] array = { 9,7,3,2,5,6};
		
		for (int j = 0; j < array.length-1; j++) {
			for (int i = j+1; i < array.length ; i++) {
				if (array[j] < array[i]) {
					int t = array[j];
					array[j] = array[i];
					array[i] = t;
				}
			} 
		}
		for (int i : array) {
			System.out.println(i);
		}
	}
}
